package com.enjoyor.soa.traffic.restt.tpcms;

import com.enjoyor.soa.traffic.frame.configure.*;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
@EnableScheduling
@Import({ AopConfig.class, ExceptionConfig.class, Swagger2Config.class,
        InterceptorScannerConfig.class, SecurityWebConfig.class, SSOFilterConfig.class, DubboConfig.class,
        CustomFastJsonConfig.class, FtpUploadConfig.class})
@EnableAsync
public class TpcmsRestApplication {

	public static ConfigurableApplicationContext context;
	
	public static void main(String[] args) {
		context = SpringApplication.run(TpcmsRestApplication.class, args);
	}
	
}

